<?php
/**
 * Formulaire de suppression de news
 * @author Etienne AUDOUIN <etienne.audouin@ingesup.com>
 * @author Adrien MARIANELLI <adrien.marianelli@ingesup.com>
 * @version 1.0
 * @package view_news_delete
 */
$deleteNewsletterAttributes = array();
foreach ($newsletters as $newsletter){
    $deleteNewsletterAttributes[$newsletter->id] = $newsletter->title;
}
echo form_fieldset('Delete a newsletter');
echo form_open();
echo '<table id="table_deleteNewsletter">';
echo '<tr>';
echo '<th> Remove </th>';
echo '<td>'.form_dropdown('dropdown_deleteNewsletter', $deleteNewsletterAttributes).'</td>';
echo '</tr>';
echo '</table>';
echo form_submit(null, 'Delete');
echo form_close();
echo form_fieldset_close();
?>